/*****************************************************************************
* Keppe Messenger (KMP) Keppe Project-Team User Messaging System
* Copyright (C) 2013-2014 Keppe Project-Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/

#ifndef CONFIG_H
#define CONFIG_H

#include <QString>

// Choose SHARED if not STATIC
#ifndef STATIC
#ifndef SHARED
#ifdef QT_STATIC
#define STATIC
#else
#define SHARED
#endif
#endif
#endif

#ifndef WIN64
#ifdef Q_WS_WIN64
#define WIN64
#else
#ifdef Q_QS_WIN64
#define WIN64
#endif
#endif
#endif

#ifndef DISABLE_UPDATE_MANAGER
#ifndef UPDATE_MANAGER
#ifdef SHARED
#ifdef WIN32
#define UPDATE_MANAGER
#else
#ifdef MACX
#define UPDATE_MANAGER
#endif
#endif
#endif
#endif
#else
#undef UPDATE_MANAGER
#endif

#ifndef ProductItl
#define ProductItl "KMP"
#endif
#ifndef ProductName
#define ProductName "Keppe Messenger"
#endif
#ifndef ProductVendor
#define ProductVendor "Keppe"
#endif
#ifndef ProductVersion
#define ProductVersion "1.0.0-34"
#endif
#ifndef ProductImg
#define ProductImg ":/gui/KeppeMessengerAvatar.png"
#endif
#ifndef ProductIcon
#define ProductIcon ":/gui/km48.png"
#endif
#ifndef VendorIcon
#define VendorIcon ":/gui/keppe48.png"
#endif

#ifndef AboutVendor
#define AboutVendor "KeppePT is a Project Team that creates programs for Desktop, Server, Android and Symbian devices<br><br>All things here are done voluntarily and is distributed by more people from all over Germany<br><br>Copyright &copy; KeppePT 2013-2014"
#endif
#ifndef AboutProduct
#define AboutProduct "Keppe Messenger is a secure messenger that's protect your privacy for you, it's allow you to chat complete private without overheard from others<br/><br/>Copyright &copy; KeppePT 2013-2014"
#endif

#ifndef TranslationPath
#define TranslationPath "$ED/trplugs"
#endif


#ifndef VersionType
#ifdef MACX
#define VersionType "mxqt4"
#else
#ifdef UNIX
#define VersionType "unixqt"
#else
#ifdef QT5
#ifdef WIN64
#define VersionType "64qt5"
#else
#define VersionType "32qt5"
#endif
#else
#ifdef WIN64
#define VersionType "64qt4"
#elif defined(MSVC)
#define VersionType "vcqt4"
#else
#ifdef WIN32
#define VersionType "32qt4"
#else
#define VersionType "unknownqt"
#endif
#endif
#endif
#endif
#endif
#endif

#ifndef ApplicationID
#ifndef UNIX
#ifdef WIN64
#define ApplicationID "{6932EC7F-0EB0-4C59-A93C-4D266B8D26DC}"
#elif defined(MSVC)
#define ApplicationID "{4EA7A8DA-17A3-4466-9D8E-9E635FD85583}"
#else
#define ApplicationID "{EE2292A2-0CCC-492F-BB0E-F104F972DC1B}"
#endif
#else
#define ApplicationID "Keppe Messenger"
#endif
#endif

#ifndef UpdatePath
#define UpdatePath "http://msg.keppe.org/update/"
#endif

#ifndef ProductCompiler
#ifdef GCC
#ifdef __VERSION__
#define ProductCompiler QString("GCC " + QString(__VERSION__))
#else
#define ProductCompiler "GCC"
#endif
#elif defined(MSVC)
#ifdef MSVC2005
#define ProductCompiler "MSVC2005"
#elif defined(MSVC2008)
#define ProductCompiler "MSVC2008"
#elif defined(MSVC2010)
#define ProductCompiler "MSVC2010"
#elif defined(MSVC2012)
#define ProductCompiler "MSVC2012"
#elif defined(MSVC2013)
#define ProductCompiler "MSVC2013"
#else
#define ProductCompiler "MSVC"
#endif
#else
#define ProductCompiler "Unknown"
#endif
#endif

#endif // CONFIG_H
